package com.dream.dynamic_datasource.controller;

import com.dream.dynamic_datasource.entity.other.Dpt;
import com.dream.dynamic_datasource.mapper.UserMapper;
import com.dream.dynamic_datasource.service.other.DbTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @author: Luo
 * @create: 2020-08-25 16:15
 */
@RestController
public class DptController {
    @Autowired
    private DbTestService dbTestService;
    @Autowired
    private UserMapper userMapper;
    @RequestMapping("/hello")
    public List<Dpt> hello()  {
        return  dbTestService.getDpt();
    }
}
